package com.secondary.market.mapper;

import com.secondary.market.domain.Focus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FocusMapper {
	
	 /**
     * 查询登录用户的所有关注商品
     * @param user_id
     * @return
     */
    public List<Focus> getFocusByUserId(Integer user_id);
    
    /**
     * 根据用户id和关注id删除关注的商品
     * @param user_id 用户id
     */
    
    public void deleteFocusByUserIdAndGoodsId(@Param("goods_id") Integer goods_id,@Param("user_id") Integer user_id);

    /**
     * 添加关注
     * @param goods_id
     * @param user_id
     */
	public void addFocusByUserIdAndGoodsId(@Param("goods_id") Integer goods_id,@Param("user_id") Integer user_id);

}
